#!/usr/bin/env bash


function setColor()
{
        tput setaf $1 2>/dev/null
}

function resetColor()
{
        tput sgr0 2>/dev/null
}

function echoColor() {
    setColor 6
    echo $1
    resetColor
}

#进入目录
cd /root/data/ss5/ss5-netty

#运行脚本
git pull

#cp /opt/temp/application.yml /opt/socket/project/resource/ruoyi-admin/src/main/resources
#cp /opt/temp/application-druid.yml /opt/socket/project/resource/ruoyi-admin/src/main/resources
#mvn 打包
mvn clean package


cp /root/data/ss5/ss5-netty/target/ss5-netty-1.0-SNAPSHOT.jar /opt/ss5/lib

#运行

sh /opt/ss5/socket.sh

